import axios from "../../utils/axios";

// 获取用户列表
export function getAreaList(query) {
    return axios({
        url: "/sysArea/areaList",
        method: "get",
        params: query
    });
}
export function addOrUpdateBrand(data) {
    return axios({
        url: "/brand/addOrUpdateBrand",
        method: "post",
        data: data
    });
}
// 获取隶属关系
export function getAuthAdmin(data) {
    return axios({
        url: "/goldendays-user/admin/getAuthAdmin",
        method: "get",
        params: data
    });
}
// /brand/getCountyBrandList 获取全县级品牌
export function getCountyBrandList(data) {
    return axios({
        url: "/brand/getCountyBrandList",
        method: "get",
        params: data
    });
}
// 获取用户列表
export function getList(query) {
    return axios({
        url: "/goldendays-user/mbUserManager/getList",
        method: "get",
        params: query
    });
}
// /brand/getCountyBrandList 获取全县级品牌详情
export function getCountyBrandDetail(data) {
    return axios({
        url: "/brand/getCountyBrandDetail",
        method: "get",
        params: data
    });
}

// /companyDeploy/getCompanyDeployList 查询品牌合伙公司升级配置
export function getCompanyDeployList(query) {
    return axios({
        url: "/goldendays-promote/companyDeploy/getCompanyDeployList",
        method: "get",
        params: query
    });
}

// /companyDeploy/addOrUpdateBrand 添加/修改品牌合伙公司升级配置
export function addOrUpdateBrandNew(query) {
    return axios({
        url: "/goldendays-promote/companyDeploy/addOrUpdateBrand",
        method: "post",
        data: query
    });
}

// /brandPartnershipCompany/getBrandPartnershipCompanyPage 获取品牌合伙公司列表
export function getBrandPartnershipCompanyPage(query) {
    return axios({
        url: "/goldendays-promote/brandPartnershipCompany/getBrandPartnershipCompanyPage",
        method: "get",
        params: query
    });
}
// /brandPartnershipCompany/getBrandPartnershipCompanyDetail 获取品牌合伙公司详情
export function getBrandPartnershipCompanyDetail(query) {
    return axios({
        url: "/goldendays-promote/brandPartnershipCompany/getBrandPartnershipCompanyDetail",
        method: "get",
        params: query
    });
}
// /brandPartnershipCompany/deleteBrandPartnershipCompany 删除品牌合伙公司
export function deleteBrandPartnershipCompany(query) {
    return axios({
        url: "/goldendays-promote/brandPartnershipCompany/deleteBrandPartnershipCompany",
        method: "get",
        params: query
    });
}
// /brandPartnershipCompany/batchAddBusBrandPartnershipCompany 批量新增 品牌合伙公司
export function batchAddBusBrandPartnershipCompany(query) {
    return axios({
        url: "/goldendays-promote/brandPartnershipCompany/batchAddBusBrandPartnershipCompany",
        method: "post",
        data: query
    });
}
// /brandPartnershipCompany/addOrEditBusBrandPartnershipCompany 单条 新增/修改 品牌合伙公司
export function addOrEditBusBrandPartnershipCompany(query) {
    return axios({
        url: "/goldendays-promote/brandPartnershipCompany/addOrEditBusBrandPartnershipCompany",
        method: "post",
        data: query
    });
}
// 默认隶属关系管理
// /brandPartnershipCompany/getFourLevelCompanyList 获取4级品牌合伙公司
export function getFourLevelCompanyList(query) {
    return axios({
        url: "/goldendays-promote/brandPartnershipCompany/getFourLevelCompanyList",
        method: "get",
        params: query
    });
}
// /mbDefaultEntity/getMbDefaultEntity 默认隶属关系详情接口
export function getMbDefaultEntity(query) {
    return axios({
        url: "/goldendays-user/mbDefaultEntity/getMbDefaultEntity",
        method: "post",
        params: query
    });
}
// /mbDefaultEntity/addOrEdit 添加/编辑默认隶属关系接口
export function addOrEdit(query) {
    return axios({
        url: "/goldendays-user/mbDefaultEntity/addOrEdit",
        method: "post",
        params: query
    });
}
// /cooperativeBrand/getBrandList 分页获取一级公司列表
export function getBrandList(query) {
    return axios({
        url: "/cooperativeBrand/getBrandList",
        method: "get",
        params: query
    });
}
// /cooperativeBrand/check 查看
export function check(query) {
    return axios({
        url: "/cooperativeBrand/check",
        method: "get",
        params: query
    });
}
// brandPartnershipCompany/getPartnerList 合伙人管理
export function getPartnerList(query) {
    return axios({
        url: "/brandPartnershipCompany/getPartnerList",
        method: "post",
        params: query
    });
}
// /cooperativeBrand/deleteCompany 删除
export function deleteCompany(query) {
    return axios({
        url: "/cooperativeBrand/deleteCompany",
        method: "post",
        params: query
    });
}
// /brandPartnershipCompany/getPartnerTree 合伙人树结构列表
export function getPartnerTree(query) {
    return axios({
        url: "/brandPartnershipCompany/getPartnerTree",
        method: "post",
        params: query
    });
}
// /brandPartnershipCompany/getCompanyTree 品牌合伙公司树结构列表
export function getCompanyTree(query) {
    return axios({
        url: "/brandPartnershipCompany/getCompanyTree",
        method: "post",
        params: query
    });
}
